package com.graduate.cec.pojo.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.graduate.cec.pojo.entity.Comment;
import lombok.Data;

import java.util.Date;
import java.util.List;

@Data
public class CommentVO {
    private Long id;

    private Long userId;

    private String username;

    private String avatar;

    private Byte state;

    private Long parentId;

    private Long articleId;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date gmtCreate;

    private Date gmtModified;

    private Long beenId;

    private String beenName;

    private Integer isRead;

    private String content;

    private List<CommentVO> children;


}